﻿using System.ComponentModel.DataAnnotations;
using Abp.Auditing;
using Abp.Authorization.Users;
using Abp.Domain.Entities;

namespace LeadThing.AbpZeroTemplate.Authorization.Users.Dto
{
    //Mapped to/from User in CustomDtoMapper
    public class UserRegisterAPPDto
    {
        [Required]
        [StringLength(User.MaxNameLength)]
        public string Name { get; set; }

        [StringLength(User.MaxPhoneNumberLength)]
        public string PhoneNumber { get; set; }

        // Not used "Required" attribute since empty value is used to 'not change password'
        [StringLength(User.MaxPlainPasswordLength)]
        [DisableAuditing]
        public string Password { get; set; }


        /// <summary>
        /// 镇ID
        /// </summary>
        public string TownID { get; set; }

        /// <summary>
        /// 区ID
        /// </summary>
        public string AreaID { get; set; }

        /// <summary>
        /// 村ID
        /// </summary>
        public string VillageID { get; set; }

    }
}